//
//  YHYWUViewController.m
//  Home
//
//  Created by 吴军虎吴军虎 on 16/6/7.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "YHYWUViewController.h"

@interface YHYWUViewController ()



@end

@implementation YHYWUViewController

-(void) viewWillAppear:(BOOL)animated
{
    self.tabBarController.tabBar.hidden=YES;
}

-(void) viewWillDisappear:(BOOL)animated
{
    self.tabBarController.tabBar.hidden=NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.backBtn = [WSCustomButton buttonWithType:UIButtonTypeCustom];
    self.backBtn.frame = CGRectMake(0, 0, 30, 30);
    [self.backBtn setImage:[[UIImage imageNamed:@"back"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] forState:UIControlStateNormal];
    [self.backBtn addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:_backBtn];
    
    
    self.view.backgroundColor=[UIColor redColor];
}


- (void)backAction:(UIButton *)back{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
